package day0309;

import java.io.FileInputStream;
import java.io.FileOutputStream;
import java.io.IOException;

public class FinallyDemo2 {
    public static void main(String[] args) {
        FileOutputStream fis=null;
        try {
            fis =new FileOutputStream("./a/b/222.txt");

            fis.write(1);
        } catch (IOException e) {
            System.out.println("2");
            e.printStackTrace();
        }finally {
            try {
                fis.close();
            } catch (IOException e) {
                System.out.println("3");
             // e.printStackTrace();
            }
        }
    }
}
